/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package control;

import control.comparaciones.Comparacion;
import control.filtros.Filtro;
import frontera.dao.DAO;
import frontera.interfaz.Tupla;
import java.util.ArrayList;

/**
 *
 * @author tuareg
 */
public abstract  class Administrar<T> {

     public ArrayList<T> buscar(ArrayList<Tupla<Filtro<T>,String>> informacion, Comparacion comparacion){
	    return getDAO().buscar(informacion,comparacion);	      
     }
     public ArrayList<T> buscar(Filtro<T> filtros, Comparacion comparacion, String filtro){
	     ArrayList<Tupla<Filtro<T>,String>> info = new ArrayList<Tupla<Filtro<T>, String>>();
	     info.add(new Tupla<Filtro<T>, String>(filtros, filtro));
	
	     return this.buscar(info, comparacion);
     }


     

     protected abstract DAO<T> getDAO();

}
